package com.whut.mapper;

import com.whut.model.Measuretablerecord;
import com.whut.model.Newmeasureresult;

import java.util.List;

public interface MeasuretablerecordMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Measuretablerecord record);

    int insertSelective(Measuretablerecord record);

    Measuretablerecord selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Measuretablerecord record);

    int updateByPrimaryKey(Measuretablerecord record);

    /*-------------------------------my method---------------------------------*/
    List<Measuretablerecord> getTableData(int checkId);

    /**
    * 通过cct的mkey来找此次检查下所有的实测实量记录
    *@author fuzhenjie
    *@date 19.10.16 19:49(GMT)
    *@param mKey checkId
    *@return java.util.List<com.whut.model.Measuretablerecord>
    */
    List<Measuretablerecord> getMeasureDetailByCct(int mKey);

    int getAllNumByCheckId(int checkId);

    int getAllQuaNumByCheckId(int checkId);

    List<Newmeasureresult> getnewTableData(int checkId);
}